package cn.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import cn.mapper.SortMapper;
import cn.pojo.Sort;

@Service("sortService")
@Transactional(propagation = Propagation.REQUIRED, timeout = -1)
public class SortServiceImpl implements SortService {
	@Resource
	private SortMapper sortMapper;

	// 获得所有讨论版区分类表的信息
	@Override
	public List<Sort> getAllSorts() {
		return sortMapper.getAllSorts();
	}

}
